<template>
  <div class="recommonded">
    <div class="title">
      <i-icon type="collection" size="24" i-class="recommendedStar" />
      <span class="recommendedTitle">{{title}}</span>
    </div>
    <ul class='clearfix'>
      <li v-for="(doctor, index) in recommondList" :key="index" class="recommondDoctorList">
        <div class="container">
          <i-avatar
            i-class="doctorAvatar"
            shape="cirlce"
            size="large"
            src="https://pic1.zhimg.com/v2-e9524bd287b70e64915a2d155f014072_is.jpg"
          ></i-avatar>
          <div class="doctorDetail">123123123</div>
          <div>78913213</div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "recommonded",
  props: {
    title: String,
    iconType: String
  },
  data() {
    return {
      recommondList: [1, 2, 3, 4]
    };
  }
};
</script>

<style lang="scss" scoped>
.clearfix:after,
.clearfix:before {
  content: "";
  display: table;
}
.clearfix:after {
  clear: both;
}
.recommonded {
  width: 100%;
  .title {
    width: 100%;
    height: 60rpx;
    line-height: 60rpx;
    background-color: #f3f1f4;
    padding: 0 20rpx;
    position: relative;
    .recommendedTitle {
      display: inline-block;
      position: absolute;
      line-height: 60rpx;
      height: 60rpx;
      margin-left: 20rpx;
    }
  }
  .recommondDoctorList {
    float: left;
    width: 33.3333333%;
    padding: 20rpx 0;
    height: 200rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    background: red;
    .container {
      text-align: center;
      .doctorDetail {
        margin-top: 20rpx;
      }
    }
  }
}
</style>
<style lang="scss">
.recommendedStar {
  height: 60rpx !important;
  line-height: 60rpx !important;
  vertical-align: baseline !important;
}
</style>